package com.ktjy;

import com.ktjy.action.action01.service.EmployeeService;
import org.junit.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class SpringTest02 {
    @Test
    public void test() {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("applicationContext02.xml");
        EmployeeService empService01 =(EmployeeService) context.getBean("empService01");
        EmployeeService empService02 =(EmployeeService) context.getBean("empService02");
        empService01.introduce();
        empService02.introduce();
    }
}
